package cn.jbit.enum1;
/**
 * @author 张在成
 *
 * 自定义枚举类
 */
public enum Season {


    SPRING("春天","春暖花开"),

    SUMMER("夏天","烈日炎炎"),

    AUTUM("秋天","硕果累累"),

    WINTER("冬天","白雪皑皑");

    private  final  String  seasonName;

    private  final  String  seasonDesc;

    private Season(String seasonName, String seasonDesc) {
        this.seasonName = seasonName;
        this.seasonDesc = seasonDesc;
    }



    public String getSeasonName() {
        return seasonName;
    }

    public String getSeasonDesc() {
        return seasonDesc;
    }

    @Override
    public String toString() {
        return "Season{" +
                "seasonName='" + seasonName + '\'' +
                ", seasonDesc='" + seasonDesc + '\'' +
                '}';
    }


    public static void main(String[] args) {

        Season season=Season.SPRING;

        System.out.println(season);

        System.out.println(Season.class.getSuperclass().getName());
    }
}